package cn.builderpattern.csl;

/**
 * Created by siyuzhiyue on 2017/6/12.
 */
public class BuilderPatternDemo {
    public static void main(String[] args){
        MealBuilder mealBuilder = new MealBuilder();

        Meal meal1 = mealBuilder.meal1();

        Meal meal2 = mealBuilder.meal2();

        System.out.println("Veg Meal");
        meal1.showItems();
        System.out.println("Total Cost: " +meal1.getCost());

        System.out.println("Chicken Meal");
        meal2.showItems();
        System.out.println("Total Cost: " +meal2.getCost());
    }
}
